<?php
/**
 * Created by PhpStorm.
 * User: DELL
 * Date: 2018/4/16
 * Time: 20:37
 */

namespace app\admin\validate;
use think\Validate;

class Word extends Validate
{
    protected $rule = [
        'front_cover' => 'require',
        'title' => 'require',
        'description' => 'require',
        'content' => 'require',
        'publisher' => 'require',
    ];

    protected $message = [
        'title' =>  '标题不能为空',
        'content'  =>  '内容不能为空',
        'publisher' => '发布者不能为空',
        'description' => '简介不能为空',
        'front_cover' => '封面图不能为空'
    ];
}